package se.webbzon.boltzmann.game.object.portal;

import se.webbzon.boltzmann.environment.AbstractEnvironment;
import se.webbzon.oschi01.friendly.Friendly;

public class SavePortalDeflation extends AbstractPortalDeflation {
	
	/*============================================================
	Constructors
	============================================================*/

	public SavePortalDeflation(int deflationProperties) {
		super(deflationProperties);
	}
	
	public SavePortalDeflation(int deflationProperties, SavePortal portal) {
		super(deflationProperties,portal);
	}
	
	/*============================================================
	Friendly Methods
	============================================================*/
	
	/** Creates a new save portal from the save portal deflation. **/
	@Friendly SavePortal makePortal(AbstractEnvironment env) {
		SavePortal portal = new SavePortal(env, getPortalId());
		
		portal.setPosition(getX(), getY(), getZ());
		portal.setSize(getWidth(), getHeight(), getDepth());
		portal.setRotation(getEX(), getEY(), getEZ(), getAngle());
		
		return portal;
	}

}
